// Copyright © 2023 ycq_work@163.com. All rights reserved.

#include "./ui/mainwindow.h"
#include "./ui/SidebarWidget.h"
#include "./ui/MusicPlaybackStatusBar.h"
#include "./ui/LocalMusic.h"
#include "./ui/MusicCard.h"
#include "./ui/OnlineMusic.h"

void testUI()
{
#if 1          // 测试主界面类, 整个程序
    MXGMainWindow *pMxgMainWindow = new MXGMainWindow;
    pMxgMainWindow->show();
#endif

#if 0           // 测试本地音乐的界面类
    LocalMusic *pLocalMusic = new LocalMusic;
    pLocalMusic->show();
#endif

#if 0           // 测试在线音乐的界面类
    OnlineMusic *pOnlineMusic = new OnlineMusic;
    pOnlineMusic->show();
#endif

#if 0           // 测试侧边栏的界面类
    SidebarWidget *pSidebarWidget = new SidebarWidget;
    pSidebarWidget->show();
#endif

#if 0           // 测试播放状态栏的界面类
    MusicPlaybackStatusBar *pMusicPlaybackStatusBar = new MusicPlaybackStatusBar;
    pMusicPlaybackStatusBar->show();
#endif

#if 0           // 测试音乐展示小卡片的界面类
    MusicCard *pMusicCard = new MusicCard;
    pMusicCard->show();
#endif

#if 0
    QLabelScroll *pQLabelScroll = new QLabelScroll;
    pQLabelScroll->setText("第五届董我王建东IQ佛if分红权合肥地区哦打好气哦我稳定后气温");
    pQLabelScroll->startScroll(50, 5000);  // 滚动间隔为 50 毫秒
    pQLabelScroll->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
    pQLabelScroll->show();
#endif
}